﻿<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema"
                xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
                version="1.0"
                exclude-result-prefixes="xsl msxsl ddwrt"
                xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
                xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
                xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:msxsl="urn:schemas-microsoft-com:xslt"
                xmlns:SharePoint="Microsoft.SharePoint.WebControls"
                xmlns:ddwrt2="urn:frontpage:internal">

  <xsl:output method="html" indent="no" />
  <xsl:template match="FieldRef[@Name='MailPriority']" mode="body">
    <xsl:param name="thisNode" select="." />
    <xsl:variable name="fldValue">
      <xsl:value-of select="$thisNode/@*[name()=current()/@Name]" />
    </xsl:variable>
    <xsl:choose>
      <xsl:when test="$thisNode/@*[name()=current()/@Name] = 'Hoch'">
        <img alt="Hoch" src="/_layouts/images/GroupMailerHigh.png" />
      </xsl:when>
      <xsl:when test="$thisNode/@*[name()=current()/@Name] = 'High'">
        <img alt="High" src="/_layouts/images/GroupMailerHigh.png" />
      </xsl:when>
      <xsl:when test="$thisNode/@*[name()=current()/@Name] = 'Alta'">
        <img alt="Alta" src="/_layouts/images/GroupMailerHigh.png" />
      </xsl:when>
      <xsl:when test="$thisNode/@*[name()=current()/@Name] = 'Niedrig'">
        <img alt="Niedrig" src="/_layouts/images/GroupMailerLow.png" />
      </xsl:when>
      <xsl:when test="$thisNode/@*[name()=current()/@Name] = 'Low'">
        <img alt="Low" src="/_layouts/images/GroupMailerLow.png" />
      </xsl:when>
      <xsl:when test="$thisNode/@*[name()=current()/@Name] = 'Baja'">
        <img alt="Baja" src="/_layouts/images/GroupMailerLow.png" />
      </xsl:when>
      <xsl:otherwise></xsl:otherwise>
    </xsl:choose>
  </xsl:template>
  <xsl:template match="FieldRef[@Name='MailBody']" mode="Note_body">
    <xsl:param name="thisNode" select="." />
    <xsl:value-of select="$thisNode/@*[name()=current()/@Name]"/>
  </xsl:template>
</xsl:stylesheet>


